widget: Queue resize on parent, not self
authorBenjamin Otte <otte@redhat.com>
Tue, 3 Nov 2015 21:51:01 +0000 (22:51 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 3 Nov 2015 21:55:03 +0000 (22:55 +0100)
commitd65ba7cf97f332595e6c75c120d7a242d2857392
tree787415c84795891ac2be8c7e4631df5f8336ebb6
parent8e5c7ac028a221800069f325da2c1b0ba95304a0
widget: Queue resize on parent, not self

When setting the parent of a widget, queue_resize() on the widget will
be optimized away if the widget already had a resize queued.

Plus, we do not need to resize the widget as its size request is not
going to change.
gtk/gtkwidget.c